package com.example.oss;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

@EnableDiscoveryClient  //注册服务
//启动时不包含数据库配置
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
//添加swagger配置
@ComponentScan(basePackages = {"com.example"})
//@EnableWebMvc
public class OssAplication {
    public static void main(String[] args) {
        SpringApplication.run(OssAplication.class, args);
    }
}
